package com.zang.util;

import java.util.List;
import java.util.function.Predicate;

/**
 * @author Zhang Qiang
 * @Date 2019/8/28 9:31
 */
public class Action {

    public static void main(String[] args) {


    }


    public static void pattern(){

        //验证用户名
        String namePattern = "^[A-Za-z0-9]+$";
        String name = "456as";

        System.out.println("name is pattern : " + name.matches(namePattern));

    }


    public static void event(List<Integer> list, Predicate<Integer> predicate){

    }

}

